PSaveAs

Saves the active publication, using the specified filename, as a publication or template. Also copies linked documents, if specified.


Command constructor

PSaveAs(const char * fPubname, eKind cKind = kKindPublication, eCopy cCopyWhat = kCopyNone, PMBool bPreview = false);
const char * fPubname;
Exact name and path (optional) of the publication to save (maximum of 91 characters, including path)

(Windows only) Include the appropriate filename extension:

eKind cKind;
kKindPublication (the default)
kKindTemplate (in Windows, include the extension .pt6 in the filename)
kKind50Format for PageMaker 5.0 format, so the publication can be opened in PageMaker 5.0 (in Windows, include the extension .pm5 in the filename)
eCopy cCopyWhat;
kCopyNone (the default) to save only the publication, not the linked files
kCopyRemote to copy all files that are needed to print that publication into one folder, including any linked files and special files that contain instructions for composing the publication (such as the track-kerning resource file)
kCopyLinked to copy all externally located files to the folder in which the publication is being saved
PMBool bPreview;
false to save the publication without a Fetch preview (the default)
true to save a Fetch preview with the publication
Using PSaveAs command. Use PSaveAs to do the following: No warning if overwriting existing file. Unlike the Save As command on the File menu, the PSaveAs command does not prompt you if a file of the same name exists; instead, it automatically replaces the file.

Links not saved in cases of low disk space. If you specify linked for the cCopyWhat parameter and there is not enough room for both the publication and its linked files, PageMaker displays an alert message and does not copy the linked files.

Saving templates in Windows. To save a publication as a template in Windows, you must specify the filename extension ".pt6." PageMaker for Windows uses the extension to distinguish between templates and publications.

Saving as 5.0 format. If you specify cKind as 50format or 2, PageMaker disregards the cCopyWhat and bPreview parameters.

Example. The following example saves "mypub" as a publication, copies all documents linked to "mypub," and does not include a Fetch preview with the publication (the default setting when the parameter is omitted).

PSaveAs("myfloppy:myfolder:mypub", 0, copy_linked, 0);


See also

Adobe PageMaker 6.5 Help > Commands > File > Save As


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support